package com.guigu.www.controller.yinBo;


import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.guigu.www.dao.bean.TMemberMedicalhistory;
import com.guigu.www.service.TMemberMedicalhistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import org.springframework.stereotype.Controller;

/**
 * <p>
 * 会员病史表 前端控制器
 * </p>
 *
 * @author abo
 * @since 2021-06-25
 */
@RestController
@CrossOrigin
@RequestMapping("/tMemberMedicalhistory")
public class TMemberMedicalhistoryController {

    @Autowired
    TMemberMedicalhistoryService tMemberMedicalhistoryService;

    @GetMapping("/{id}")
    public TMemberMedicalhistory q(@PathVariable("id") int id){
        EntityWrapper<TMemberMedicalhistory> wrapper = new EntityWrapper<TMemberMedicalhistory>();
        wrapper.eq("t_member_id",id);
        TMemberMedicalhistory medicalhistory = tMemberMedicalhistoryService.selectOne(wrapper);
        return medicalhistory;
    }
}


